
def getLastMove(chessboard):
        """
        Returns a tupple containing two tupples describing the move just made using the internal coordinates. 
        In the format ((from_x,from_y),(to_x,to_y))
        Ex. ((4,6),(4,4))
        Returns None if no moves has been made.
        """
        if chessboard._state_stack_pointer<=1: # No moves have happened yet
            return None
        
        chessboard.undo()
        move = chessboard._moves[chessboard._state_stack_pointer-1]        
        res = (move[1],move[2])
        chessboard.redo()
        
        return res

